.shortcuts-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.shortcuts-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.shortcuts-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shortcuts-panel {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  overflow: hidden;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.shortcuts-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.shortcuts-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.shortcuts-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.shortcuts-content {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.shortcuts-category {
  margin-bottom: 24px;
}

.shortcuts-category:last-child {
  margin-bottom: 0;
}

.shortcuts-category h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}

.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.shortcut-item:hover {
  background: #e9ecef;
}

.shortcut-key {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shortcut-description {
  font-size: 14px;
  color: #546e7a;
  flex: 1;
  text-align: right;
}

.shortcuts-footer {
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.shortcuts-footer p {
  margin: 0;
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

/* 滚动条样式 */
.shortcuts-content::-webkit-scrollbar {
  width: 6px;
}

.shortcuts-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.shortcuts-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.shortcuts-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .shortcuts-panel {
    width: 95%;
    max-height: 90vh;
  }
  
  .shortcuts-header {
    padding: 16px 20px;
  }
  
  .shortcuts-header h3 {
    font-size: 18px;
  }
  
  .shortcuts-content {
    padding: 20px;
  }
  
  .shortcut-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .shortcut-key {
    min-width: auto;
    align-self: flex-start;
  }
  
  .shortcut-description {
    text-align: left;
  }
  
  .shortcuts-footer {
    padding: 12px 20px;
  }
}
